<?php global $user, $base_url; ?>
<?php if (!empty($package) && !empty($items[$package->nid])): ?>
<div class="well">
    <a href="#" class="package-items-show"><i class="icon-plus"></i></a>

    <div class="package-img item-img">
        <?php $img_uri = !empty($package->field_package_image[LANGUAGE_NONE][0]['uri'])
            ? $package->field_package_image[LANGUAGE_NONE][0]['uri'] : ''; ?>
        <?php print theme('image_style', array('path' => $img_uri, 'style_name' => 'crop_200x200'));?>
    </div>
    <div class="package-info">
        <div class="incom info-item">
            <?php $incom = tvn_common_render_tracking_package($package);?>
            <label><?php print t('Incomming Tracking');?></label><span><?php print $incom;?></span>
        </div>
        <div class="received info-item">
            <label><?php print t('Received By');?></label>
            <?php print !empty($package->field_received_by[LANGUAGE_NONE][0]['value'])
                ? $package->field_received_by[LANGUAGE_NONE][0]['value'] : '';?>
        </div>
        <div class="date info-item">
            <label><?php print t('Date Received');?></label>
            <?php print !empty($package->field_received_by[LANGUAGE_NONE][0]['value'])
                ? format_date($package->field_date_received[LANGUAGE_NONE][0]['value']) : '';?>
        </div>
    </div>
    <div class="clear"></div>
    <div class="package-item-list display-none">
        <?php print theme('locked-items', array('items' => $items[$package->nid]));?>
    </div>
</div>
<?php endif; ?>